/*
 * 易族智汇（北京）科技有限公司 版权所有。
 * 未经许可，您不得使用此文件。
 * 官方地址：www.javamall.com.cn
 */
package com.enation.app.javashop.core.client.feignimpl.distribution;

import com.enation.app.javashop.client.distribution.BillMemberClient;
import com.enation.app.javashop.core.client.fallback.distribution.BillMemberClientFallbackFactory;
import com.enation.app.javashop.model.distribution.dos.DistributionOrder;
import com.enation.app.javashop.model.distribution.dos.DistributionOrderDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * DistributionClient
 *
 * @author Chopper
 * @version v1.0
 * @since v7.0
 * 2018-08-14 下午1:54
 */
@FeignClient(name = "distribution-service", fallbackFactory = BillMemberClientFallbackFactory.class)
public interface BillMemberClientFeignImpl extends BillMemberClient {

    /**
     * 购买商品产生的结算
     *
     * @param order
     */
    @Override
    @RequestMapping(value = "/client/bill-member/buy", method = RequestMethod.POST)
    void buyShop(@RequestBody DistributionOrderDO order);


    /**
     * 退货商品产生的结算
     *
     * @param distributionOrder
     */
    @Override
    @RequestMapping(value = "/client/bill-member/return", method = RequestMethod.POST)
    void returnShop(@RequestBody DistributionOrder distributionOrder);
}
